<?php
//http://molgav.nn.ru/share.php?riff=a0-a0070500-20a00500-0e0d0d0806040b10080c-00ff01ff02ff03ff04ff05ff06ff07ff40104110421043104410451046104710a011a111a211a311a411a511a611a711-0050103400000103400130103400150103400230203400250203400450103400400103400530103400550103400630203400650203400850103400800103400930103400950103400a30203400a50203400c50103400c00103400d30103400d50103400e30203400e50203401050103401000103401130103401150103401230203401250203401450103401400103401530103401550103401630203401650203401850103401800103401930103401950103401a30203401a50203401c50103401c00103401d30103401d50103401e30203401e50203402050103402000103402130103402150103402230203402250203402450103402400103402530103402550103402630203402650203402850103402800103402930103402950103402a30203402a50203402c50103402c00103402d30103402d50103402e30203402e5020340300020340305020340320020540325020540340020740345020740360020c403650200403800210403850204403a0020f403a50203403c0020b403c5020b403e0020a403e5020a40
error_reporting(E_ALL);
ini_set('display_errors', 1);
include("pChart2.1.4/class/pDraw.class.php");
include("pChart2.1.4/class/pImage.class.php");

$pimage = new pImage(600, 400);
$pimage->setFontProperties(array("FontName" => "pChart2.1.4/fonts/MankSans.ttf", "FontSize" => 28));
$pimage->drawFilledRectangle(0, 0, 700, 330, array("R" => 128, "G" => 183, "B" => 128));
$pimage->drawText(101, 63, "Some testing", array("R" => 0, "G" => 99, "B" => 255));
$thk = 16;
$x1 = 33;
$y1 = 215;
$x2 = 77;
$y2 = 44;
$pimage->drawLine($x1, $y1, $x2, $y2, array("R" => 255, "G" => 0, "B" => 66, "Weight" => $thk));
$pimage->drawRoundedFilledRectangle($x1 - $thk, $y1 - $thk, $x1 + $thk, $y1 + $thk, $thk, array("R" => 255, "G" => 0, "B" => 66));
$pimage->drawRoundedFilledRectangle($x2 - $thk, $y2 - $thk, $x2 + $thk, $y2 + $thk, $thk, array("R" => 255, "G" => 0, "B" => 66));
//$pimage->drawCircle($x2, $y2, $thk, $thk, array("R" => 213, "G" => 226, "B" => 0));
$pimage->autoOutput("share/test.png");
//$pimage->render("share/test.png");

//echo "<p>done</p>";
?>